﻿using System.Web.Mvc;
using System.ComponentModel.DataAnnotations;

namespace IndignadoFramework.BackOffice.Models
{

    public class LogOnModel
    {
        [Required]
        [Display(Name = "User name")]
        public string UsuarioAdminName { get; set; }

        [Required]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string UsuarioAdminPassword { get; set; }

        [Display(Name = "Remember me?")]
        public bool RememberMe { get; set; }
    }

    public class RegisterModel
    {
        [Required]
        [Display(Name = "User name")]
        [RegularExpression(@"(\S)+", ErrorMessage = "White space is not allowed.")]
        public string UsuarioAdminName { get; set; }

        [Required]
        [StringLength(12, MinimumLength = 6, ErrorMessage = "The {0} must be at least 6, and no longer than 12 characters long")]
        [DataType(DataType.Password)]
        [Display(Name = "Password")]
        public string UsuarioAdminPassword { get; set; }

    }


}